package com.example.mapper;

import com.example.entity.Goods;
import com.example.entity.History;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: 康伟奇
 * @date: 2024 - 01 - 02 15:46
 **/
public interface HistoryMapper {

    void insert(History history);

    void deleteById(Integer id);

    void updateById(History history);

    History selectById(Integer id);

    List<History> selectAll(History history);

    @Select("select * from history where business_id = #{businessId} and user_id = #{userId}")
    History selectByBusinessIdAndUserId(@Param("businessId") Integer businessId,@Param("userId") Integer userId);
}
